package MyTest;

import java.util.ArrayList;
import java.util.Scanner;

public class MyTest {
    public static void main(String[] args) {

        System.out.println("0.0欢迎来到歪歪网0.0");
        System.out.println("1:已有账号登录");
        System.out.println("2:注册新用户");
        Scanner sc = new Scanner(System.in);
        int a=sc.nextInt();
        switch (a){
            case 1:

            case 2:

        }


    }
    public static void addPerson(ArrayList<Person> array){
        System.out.println("请输入要注册的账号");
        Scanner sc = new Scanner(System.in);
        String s=sc.nextLine();
        int idex=-1;
        for(int i=0;i<array.size();i++){
            Person s1=array.get(i);
            if(s.equals(s1.getId())){
                idex=i;
                break;
            }
            if(idex==-1){
                System.out.println("请输入密码(6位数字)");
                int pass=sc.nextInt();
            }else {
                System.out.println("你输入的账号已有人使用，请重新输入");
            }
        }


    }

}
